﻿// -------------------------------------------------------------------------
//    @FileName         :    NFHealthGameUtil.cpp
//    @Author           :    gaoyi
//    @Date             :    24-8-22
//    @Email            :    445267987@qq.com
//    @Module           :    NFHealthGameUtil
//
// -------------------------------------------------------------------------

#include "NFHealthGameUtil.h"

#include <NFPacketSendUtil.h>

#include "NFSession.h"
#include "proto_cs.pb.h"

int NFHealthGameUtil::SendForbidLoginNtf(NFSession *pSession, uint32_t sealed_time)
{
    CHECK_NULL(0, pSession);

    proto_ff::Proto_CSRsp sRsp;
    proto_ff::Proto_SCHealthGameForbidLoginNtf *ntf = sRsp.mutable_healthgame_forbid_login_rsp();
    ntf->set_sealed_time(sealed_time);

    return NFPacketSendUtil::SendToClient(pSession, proto_ff::E_SC_HEALTH_LOGIN_FORBID_NTF, &sRsp);
}
